package com.bobi.tfca.model.constant;

/**
 * redis常量
 * @author 梁世荣
 * @since 2023/11/24
 */
public class RedisConstant {

    // 运行中的进程
    public static final String AVAILABLE_PROCESS_REDIS_PREFIX = "process:running:";
    // 全局配置redid前缀
    public static final String CONFIG_UPDATE_REDIS_PREFIX = "config:update:";
    // 用户jwt前缀
    public static final String USER_JWT_PREFIX = "user:jwt:";
    // 登录验证码前缀
    public static final String USER_CAPTCHA_PREFIX = "user:captcha";

    // 用户密码过期时间的前缀
    public static final String USER_PASSWORD_EXPIRE_PREFIX = "user:password:expire:";


    /**
     * 用户失效次数的前缀
     */
    public static final String USER_EXPIRE_COUNT_PREFIX = "user:expire:count:";

    /**
     * 多次登录失败时，禁用时间的前缀
     */
    public static final String USER_PROHIBITION_TIME_PREFIX = "user:prohibition:time:";

    /**
     * 会员权益
     */
    public static final String MEMBER_RIGHTS = "resource:rights:";
    /**
     * 协会章程
     */
    public static final String ASS_RULES = "resource:rules:";

    /**
     * 协会架构
     */
    public static final String ORG_STRUCTURE = "resource:structure:";
    public static final String ARTICLE_CULTURE = "article:culture:";
}
